﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;

namespace Tradex.MessageBus {

    /// <summary>
    /// A ConversationKey is a message that identifies a conversation within the MessageBus.
    /// </summary>
    public sealed class ConversationKey {

        /// <summary>
        /// Public Constructor for a new ConversationKey.
        /// </summary>
        public ConversationKey() {
            _Value = Guid.NewGuid();
        }

        Guid _Value;

        /// <inheritdoc />
        public override string ToString() {
            return String.Format(CultureInfo.InvariantCulture, "{0}", _Value);
        }

    }

}
